# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0805-06.py
    ======================
    @descript: 局部变量
    @copyright:nnz
    @author:dln
    @date: 2021/8/5 19:51
    @version:v1.0
'''
def f_01(p_01,p_02):
    v_01='a'
    for element in range(1,10) :
        print(element)
    pass
    print()
    print('全局变量',globals())
    print('局部变量',locals())
f_01(1,2)

def f_02(p_03):
    print('局部变量',locals())
    v_02=8
    print('变量v_02的值为：',v_02)
    # del v_02
    print('变量v_02的值为：',v_02)
    pass
f_02(4)